package HW.hw3;
public class DropOutStackDemo
{
	public static void main(String[] args)
	{
		testStringStack();
	}
	public static void testStringStack()
	{
		DropOutStack<String> stack = new DropOutStack<String>();
		stack.push("Jeff");
		stack.push("Tom");
		stack.push("Jim");
		stack.push("Jane");
		stack.push("Joe");
		System.out.println("Stack size is 5, we're full!");
		System.out.println(stack.toString());
		System.out.println("");
		stack.push("Taylor");
		System.out.println("Taylor is pushed onto the stack and Jeff is removed");
		System.out.println(stack.toString());
		System.out.println("");
		stack.pop();
		System.out.println("Let's pop Taylor right off that stack");
		System.out.println(stack.toString());
		System.out.println("");
		stack.push("Tim");
		System.out.println("Push Tim to fill the stack back up");
		System.out.println(stack.toString());
		System.out.println("");
		stack.push("Kyle");
		System.out.println("Push Kyle to the stack and Tom is removed");
		System.out.println(stack.toString());
		System.out.println("");	
	}
}